home *** CD-ROM | disk | FTP | other *** search
/ Eagles Nest BBS 8 / Eagles_Nest_Mac_Collection_Disc_8.TOAST / Developer Tools⁄Additions / CProgramStrt / TC Prog Guide / TC Prog Guide / card_59590.txt < prev    next >
Encoding:
Text File  |  1991-02-27  |  1.0 KB  |  24 lines

  1. -- card: 59590 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 4
  9. ----- text -----
  10. C++ OBJECT EXTENSIONS
  11.  
  12. C++ provides most of the object extensions available in TC plus numerous additional features.
  13.  
  14. Significantly, it is possible to declare identifiers which are themselves objects, rather than pointers to objects as required in TC.  On the other hand, in order for methods to be overriden within descendant classes, the first prototype declaration for the method must be preceded by the 'virtual' keyword.
  15.  
  16. 'new' and 'delete' are implemented as operators in C++, rather than functions as in TC.  They may be applied to all data types.
  17.  
  18. C++ allows "creator" and "destructor" methods, which are automatically invoked when an object is allocated and deallocated.
  19.  
  20. C++ provides the 'class' data type, which is similar to 'struct' except greater control over the scope of instance variables and methods is enabled.  The 'public', 'protected',
  21.  
  22. -- part contents for background part 7
  23. ----- text -----
  24. 218